<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="03_Button_Inside_UpdatePanel.aspx.cs" Inherits="_03_Button_Inside_UpdatePanel"
    Title="Untitled Page" %>

<%@ Register Assembly="Flan.Controls" Namespace="Flan.Controls" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="False">
        <contenttemplate>
<asp:Button id="Button1" onclick="Button1_Click" runat="server" Text="Get Time"></asp:Button> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec et purus. Mauris hendrerit enim et eros. Morbi ultricies nonummy nunc. Aliquam nec ligula. Cras at nulla. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Suspendisse potenti. Vivamus ullamcorper tincidunt sem. Proin ut orci. Donec id nulla. Aliquam sed justo sit amet nibh luctus luctus. Donec sagittis, orci at facilisis scelerisque, lorem purus consequat risus, sed lobortis velit nibh a nulla. Curabitur pede. Nunc sed nunc. Ut a purus. Quisque id velit. Suspendisse vel nisl. Pellentesque justo nulla, dictum sit amet, bibendum nec, adipiscing in, dolor. Suspendisse gravida laoreet quam. Aenean quam.
</contenttemplate>
    </asp:UpdatePanel>
    <!--------------UpdatePanelPopupExtender-------------------------->
    <cc1:UpdatePanelPopupExtender ID="UpdatePanelPopupExtender1" runat="server" OffsetX="0"
        OffsetY="0" TargetControlID="UpdatePanel2" CalloutColor="Black" CalloutBorderColor="Black"
        CalloutType="Solid" />
    <!--------------UpdatePanelPopupExtender-------------------------->
    <div style="display: none">
        <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
            <contenttemplate>
            <div style="padding: 8px;background-color: black; color: White">
                <div style="font-weight: bold; font-size: 1em">
                    Server Time</div>
                <div id="divClose" runat="server" class="closeIcon">
                </div>
                <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label><br />
                <span id="spnClose" runat="server" style="text-decoration: underline; cursor: pointer">
                    Close Me</span>
            </div>
        </contenttemplate>
        </asp:UpdatePanel>
    </div>
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID="ContentPlaceHolder2">
    <ul>
        <li>ChildrenAsTriggers is set to "false" and UpdateMode is "conditional" for UpdatePanel1
            to save bandwidth (Nothing changes in UpdatePanel1)</li>
    </ul>
</asp:Content>
